#ifndef _BSP_SLEEP_H_
#define _BSP_SLEEP_H_
#include "app_data.h"

#define CONFIG_HUD_DEFAULT_WAKEUP_TIME 3
#define CONFIG_HUD_DEFAULT_WAKEUP_PIN 0
#define CONFIG_HUD_DEFAULT_WAKEUP_LEVEL ESP_EXT1_WAKEUP_ALL_LOW

#define CONFIG_VIN_MAX 14
#define CONFIG_VIN_MIN 11

#define CONFIG_HUD_CAN_GPIO 2

// #define CONFIG_HUD_USE_ADJUST y

enum save_data_t
{
    SAVE_BL,      //亮度灵敏度
    SAVE_BL_MODE, // 自动手动
    SAVE_CAN,
    SAVE_ANGLE,
    SAVE_ZERO
};

void bsp_sleep_start(void);
void bsp_sleep_wakeup_info(void);
bool app_sleep_judge(void);
void bsp_sleep_init(void);
esp_err_t bsp_sleep_save_data(uint8_t num);
#endif
